<#import "/lib/spring.ftl" as spring />
  
<#macro addScript>
  <#assign script>
    <#nested />
  </#assign>
  
  <#if !ui.scripts??>
    <#assign scripts = [] in ui />
  </#if>
    
  <#assign scripts = (ui.scripts + [script]) in ui />
</#macro>

<#macro score name score>
  <tr>
    <td style="width: 200px; border-width: 0px; padding-left:0px;padding-bottom: 0px;">
      ${name}:
    </td>
    <td style="border-width: 0px;padding-bottom: 0px;">                      
      <#list 1..score as i>
        <i class="icon-star" style="color:#dc8700;"></i>
      </#list>   
      
      <#if (5 - score) gt 0>
        <#list 1..(5 - score) as i>
          <i class="icon-star" style="color:#aaa;"></i>
        </#list>
      </#if>
    </td>
  </tr>
</#macro>

<#macro r path>
  <@spring.url '/resources/cached/${resourcesVersion}${path}' />
</#macro>